<?php

include('inc/IXR_Library.inc.php');

session_save_path(dirname(__FILE__).'/sessions/');
session_start();

$client = new IXR_Client('http://www.cleeus.de/iw2p/xmlrpc.php');


if($_SESSION['iW2P_sessionid']) {
	//show queues
} else {
	
	//get the challenge
	if(!$client->query('INFLobby.getChallenge')) {
		die('Something went wrong - '.$client->getErrorCode().' : '.$client->getErrorMessage());
	}
	$challenge = $client->getResponse();
	
	//write it into a file
}
?>
